package co.yixiang.yshop.module.crm.controller.admin.crmcloudcalllog.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import co.yixiang.yshop.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static co.yixiang.yshop.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 呼叫记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CrmCloudcallLogPageReqVO extends PageParam {

    @Schema(description = "联系人名称", example = "赵六")
    private String name;

    @Schema(description = "来源类型如customer，clues")
    private String source;

    @Schema(description = "来源数据ID", example = "21913")
    private Long sourceId;

    @Schema(description = "员工", example = "7228")
    private String adminName;

    @Schema(description = "坐席工号")
    private String fromExten;

    @Schema(description = "处理状态", example = "2")
    private String status;

    @Schema(description = "呼叫号码")
    private String callNo;

    @Schema(description = "被呼叫号码")
    private String calledNo;

    @Schema(description = "录音文件")
    private String recordFile;

    @Schema(description = "呼叫时长(秒)")
    private Integer callTimeLength;

    @Schema(description = "呼叫类型", example = "1")
    private String connectType;

    @Schema(description = "呼叫事件ID", example = "1287")
    private String actionId;

    @Schema(description = "添加时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}